import { Button, Input } from "antd";
import React from "react";

const Search = (props: any) => {
  const { value, handleAdd, handleInput } = props;
  return (
    <div className="flex items-center mt-2">
      <Input
        className="w-[200px]"
        type="text"
        value={value}
        onChange={handleInput}
      ></Input>
      <Button className="mr-[5px]" type="primary" onClick={handleAdd}>
        新增
      </Button>
    </div>
  );
};

export default Search;
